<div class="widgets">
  <div class="row">
    <div class="col-xs-12">
      <ba-card baCardClass="with-scroll">
        <div class="section">
          <form (ngSubmit)="search()" class="form-horizontal">
            <div class="form-group row">

              <div class="col-sm-5">
                <label for="idcard" class="col-sm-5 control-label">身&nbsp;&nbsp;份&nbsp;&nbsp;证</label>
                <div class="col-sm-7">
                  <input [(ngModel)]="searchForm.idcard" name="idcard" type="text" class="form-control">
                </div>
              </div>

              <div class="col-sm-5">
                <label for="name" class="col-sm-5 control-label">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</label>
                <div class="col-sm-7">
                  <input [(ngModel)]="searchForm.name" name="name" type="text" class="form-control">
                </div>
              </div>

            </div>

            <div class="form-group row">

              <div class="col-sm-5">
                <label for="companyname" class="col-sm-5 control-label">企业名称</label>
                <div class="col-sm-7">
                  <input type="text" name="companyname" [(ngModel)]="searchForm.companyname" class="form-control">
                </div>
              </div>

              <div class="col-sm-5">
                <label for="type" class="col-sm-5 control-label">证书类型</label>
                <div class="col-sm-7">
                  <select [(ngModel)]="searchForm.type" name="type" type="text" class="form-control">
                    <option value="">全部</option>
                    <option value="质量员">质量员</option>
                    <option value="施工员">施工员</option>
                    <option value="安全员">安全员</option>
                    <option value="标准员">标准员</option>
                    <option value="材料员">材料员</option>
                    <option value="机械员">机械员</option>
                    <option value="劳务员">劳务员</option>
                    <option value="资料员">资料员</option>
                  </select>
                </div>
              </div>
            </div>
            <div class="form-group row">
              <div class="col-sm-5">
                <label for="score" class="col-sm-5 control-label">成绩录入</label>
                <div class="col-sm-7">
                  <select [(ngModel)]="searchForm.score" name="score" type="text" class="form-control">
                    <option value="1">已录入</option>
                    <option value="0">未录入</option>
                  </select>
                </div>
              </div>
              <div class="col-sm-5"></div>

              <div class="col-sm-2">
                <button type="submit" class="btn btn-primary pull-left">
                  <i class="fa fa-search" aria-hidden="true"></i> 查询
                </button>
              </div>
            </div>

          </form>
        </div>

        <div class="section btn-section btn-toolbar" role="toolbar">
          <div class="btn-group" role="group">
            <a role="button" class="btn btn-primary btn-review" (click)="save()">保存</a>
            <span *ngIf="errorShow">请重新登录</span>
          </div>
        </div>


        <div class="section">
          <table #scoreTable class="display" style="width: 100%;">
            <thead>
            <tr>
              <th>姓名</th>
              <th>性别</th>
              <th>身份证号</th>
              <th>学历</th>
              <th>企业名称</th>
              <th>行业</th>
              <th>技术职称</th>
              <th>证书类型</th>
              <th>录入时间</th>
              <th>成绩</th>
            </tr>
            </thead>
          </table>
        </div>
      </ba-card>
    </div>
  </div>
</div>
